// @flow
import React, { Component } from 'react'

type Props = {
  data: Object,
  refreshLimit: Function
}
class VarSettings extends Component {
  props: Props
  showModal: Function
  constructor (props: Props) {
    super(props)
    this.showModal = this.showModal.bind(this)
  }

  showModal () {
    const { refreshLimit, data } = this.props
    refreshLimit(data)
  }
  render () {
    // const data = this.props.data
    return (
      <a onClick={this.showModal}>查看</a>
    )
  }
}

export default VarSettings
